package com.tgu.home_action.service.admin;

import com.tgu.home_action.pojo.*;

import javax.validation.constraints.NotNull;
import java.util.List;

public interface AdminFamilyService {
    /**
     * 获取家属用户
     */
    ResponseData<Page<Family>> getFamily(Family family);

    /**
     * 修改家属信息
     */
    ResponseData<Object> updateFamilyInfo(Family family);

    /**
     * 修改家属头像
     */
    ResponseData<Object> updateFamilyAvatar(@NotNull(message = "familyId不能为空") Integer familyId, @NotNull(message = "avatarUrl不能为空") String avatarUrl);

    /**
     * 查询老人信息
     */
    ResponseData<List<OldMan>> getOldMen(Integer familyId);

    /**
     * 修改老人信息
     */
    ResponseData<Object> updateOldMan(OldMan oldMan);

    /**
     * 查询家属相关案件
     */
    ResponseData<Page<Case>> getCases(Case nowCase);

    /**
     * 查询老人相关的案件
     */
    ResponseData<Page<Case>> getOldManCases(Case nowCase);

    /**
     * 删除家属用户
     */
    ResponseData<Object> delFamily(Integer familyId);

    /**
     * 删除老人信息
     */
    ResponseData<Object> delOldMan(Integer oldManId);
}
